# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=gnome-calendar
pkgver=42.1
pkgrel=0
pkgdesc="Calendar application for GNOME"
url="https://wiki.gnome.org/Apps/Calendar"
# s390x and riscv64 blocked by gtk4
arch="all !s390x !riscv64"
license="GPL-3.0-or-later"
depends="gsettings-desktop-schemas"
makedepends="
	evolution-data-server-dev
	geoclue-dev
	geocode-glib-dev
	glib-dev
	gsettings-desktop-schemas-dev
	gtk4.0-dev
	libadwaita-dev
	libical-dev
	libsoup-dev
	libgweather4-dev
	meson
	"
options="!check" # Can't be run on release builds and we don't want debug asserts
subpackages="$pkgname-lang"
source="https://download.gnome.org/sources/gnome-calendar/${pkgver%.*}/gnome-calendar-$pkgver.tar.xz"

build() {
	abuild-meson . output
	meson compile ${JOBS:+-j ${JOBS}} -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
5f50ab84f98c3ddf4c1e49f9556e47f6590c5eb8a3b598edb76d96d5c8eab48003e957d5b199a94a3955951453e3c3b783745c9b9376aee2d93d14ff95178093  gnome-calendar-42.1.tar.xz
"
